package test.myorm;

import java.lang.reflect.Field;
import java.util.Date;

public class User {
	
	private int age;
	public String name;
	protected Date ctime;
	
	public static void main(String[] args) {
		Class beanClass = User.class;
		Field[] fields = beanClass.getDeclaredFields();
		for(Field f : fields) {
			System.out.println(f.getName());
		}
		System.out.println("----");
		fields = beanClass.getFields();
		for(Field f : fields) {
			System.out.println(f.getName());
		}
	}

}
